
%%% Weighting the Evidence: A Rank-Dependent Model of Outdoor Recreation, June 2024
%%% This function evaluates the Tversky and Kahneman weighting function given a value for the gamma parameter and a probability level

function w=W_tk(parameter,prob)

w=prob^parameter/((prob^parameter+(1-prob)^parameter)^(1/parameter));

end